package com.oocl.admin_platform.service.impl;

import java.util.List;

import com.oocl.admin_platform.dao.FailReasonDao;
import com.oocl.admin_platform.dao.factory.DaoFactory;
import com.oocl.admin_platform.pojo.FailReason;
import com.oocl.admin_platform.service.FailReasonService;


public class FailReasonServiceImpl implements FailReasonService{

	private FailReasonDao failReasonDao;
	


	public void setFailReasonDao(FailReasonDao failReasonDao) {
		this.failReasonDao = failReasonDao;
	}

	public FailReasonServiceImpl() {
		// TODO Auto-generated constructor stub
		failReasonDao=DaoFactory.getFailReasonDaoInstance();
		
	}
	
	@Override
	public FailReason findByMerchantId(String merchantId) {
		// TODO Auto-generated method stub
		return failReasonDao.findByMerchantId(merchantId);
	}

	@Override
	public FailReason findByMerchantUname(String uname) {
		// TODO Auto-generated method stub
		return failReasonDao.findByMerchantUname(uname);
	}

	@Override
	public boolean save(FailReason failReason) {
		// TODO Auto-generated method stub
		return failReasonDao.save(failReason);
	}

	@Override
	public List<FailReason> findAll() {
		// TODO Auto-generated method stub
		return failReasonDao.findAll();
	}

	@Override
	public boolean update(FailReason failReason) {
		// TODO Auto-generated method stub
		return failReasonDao.update(failReason);
	}

	@Override
	public boolean delete(String merchantId) {
		// TODO Auto-generated method stub
		
		return failReasonDao.delete(merchantId);
	}
	
	

}
